package com.hxm.appGenealogy.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hxm.appGenealogy.config.Constant;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("people")
public class People implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    //父亲

    private Long fatherPeopleId;
    //妻子
    private Long wifePeopleId;
    //母亲;
    private Long motherPeopleId;
    //丈夫
    private Long husbandPeopleId;
    //名;
    private String name;
    //头像;
    private String avater;
    //所属于的种族;
    private Long familyId;
    //1是男2是女;
    @TableField("gender")
    private Integer gender;
    //姓
    private String surname;
    //祖籍;
    private String ancestral;
    //现居地;
    @TableField("present_address")
    private String presentAddress;
    //简介;
    //简介;
    private String brief;
    //手机号;
    private String number;
    //身份证;
    private String idCard;
    //学历;
    private String education;
    //工作单位;
    private String workUnit;
    //职位;
    private String position;
    //权限;0是创始人 ,1是管理员, 2是普通人员;
    private Integer jurisdiction;
    //微信用户的唯一的标识;
    @TableField("open_id")
    private String openId;
    //昵称;
    private String nickname;
    //生日;
    @DateTimeFormat(pattern = Constant.timeFormat)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date birthdayTime;
    //0是在树,1是不在树,3是申请过来的人;
    private Integer isHavePit;
    @TableField("passworld")
    private String passWorld;

    @TableField("family_merge_id")
    private Long familyMergeId;

    @TableField("is_vip")
    private int isVip;
}















